package com.pay.test;

import com.pay.utile.PayUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;
/**
 * 对接的平台 https://kutipay.com/
 * 平台跟代码编写没有关系 只是写的测试哦~~~~~~~
 */
@RestController
public class Controller {

    @GetMapping("/index")
    public void index(HttpServletResponse response, HttpServletRequest request) {
        new PayUtil().toImGES(response, UUID.randomUUID().toString().replaceAll("-", "")
                , "测试商品", 1.20, "192.168.0.01");
    }
}


